home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13893 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newsserv.cs.uni-magdeburg.de!news
  2. From: Uwe Ilgenstein <ilgenste@sunpool.cs.uni-magdeburg.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Q: Access DS in Vis. C++ 2.0? ***Please*** help!
  5. Date: Wed, 27 Mar 1996 21:36:08 -0800
  6. Organization: Univ. of Magdeburg, CS Dept, Germany
  7. Message-ID: <315A2548.724E@sunpool.cs.uni-magdeburg.de>
  8. NNTP-Posting-Host: yawp.cs.uni-magdeburg.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
  13. CC: tdaum@eva.cs.uni-magdeburg.de
  14.  
  15. Hi:
  16.   How can I access the DS register in Visual C++ 2.0?
  17. I have this piece of software that was originally compiled
  18. with Borland C++ 3.4 and that uses code like:
  19.  
  20.    register int dataSeg;
  21.    void *newAddress;
  22.    dataSeg = _DS;
  23.    _DS = currentBlock;
  24.    newAddress = (void *) LocalAlloc(LPTR, size);
  25.    _DS = dataSeg;
  26.  
  27. Any help, hints, or suggestions are greatly appreciated.
  28.  
  29. Thanks,
  30. Thorsten
  31.  
  32. P.S. Please reply via e-mail, most groups on my nttp host have a one day
  33. expire and articles often get lost!
  34.